#ifndef WIDGETLISTVIEW_H
#define WIDGETLISTVIEW_H

#include <QListView>

QT_BEGIN_NAMESPACE
class QDragEnterEvent;
class QDropEvent;
class QMouseEvent;
QT_END_NAMESPACE

typedef struct {
    const char *text;
    const char *image;
} WidgetInfo;

extern WidgetInfo widgetInfo[];

class WidgetListView : public QListView
{
    Q_OBJECT
public:
    explicit WidgetListView(QWidget *parent = 0);

protected:
    void mousePressEvent(QMouseEvent *event);

private:
    void startDrag();

signals:

public slots:

};

#endif // WIDGETLISTVIEW_H
